package com.ruoyi.shop.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.shop.mapper.MonthInventoryMapper;
import com.ruoyi.shop.domain.MonthInventory;
import com.ruoyi.shop.service.IMonthInventoryService;

/**
 * 商品月份Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-12
 */
@Service
public class MonthInventoryServiceImpl implements IMonthInventoryService 
{
    @Autowired
    private MonthInventoryMapper monthInventoryMapper;

    /**
     * 查询商品月份
     * 
     * @param id 商品月份主键
     * @return 商品月份
     */
    @Override
    public MonthInventory selectMonthInventoryById(Long id)
    {
        return monthInventoryMapper.selectMonthInventoryById(id);
    }

    /**
     * 查询商品月份列表
     * 
     * @param monthInventory 商品月份
     * @return 商品月份
     */
    @Override
    public List<MonthInventory> selectMonthInventoryList(MonthInventory monthInventory)
    {
        return monthInventoryMapper.selectMonthInventoryList(monthInventory);
    }

    @Override
    public List<MonthInventory> selectMonthInventoryList2(MonthInventory monthInventory) {

        return monthInventoryMapper.selectMonthInventoryList2(monthInventory);
    }
    @Override
    public List<MonthInventory> selectMonthInventoryList3(MonthInventory monthInventory) {

        return monthInventoryMapper.selectMonthInventoryList3(monthInventory);
    }



    /**
     * 新增商品月份
     * 
     * @param monthInventory 商品月份
     * @return 结果
     */
    @Override
    public int insertMonthInventory(MonthInventory monthInventory)
    {
        return monthInventoryMapper.insertMonthInventory(monthInventory);
    }

    /**
     * 修改商品月份
     * 
     * @param monthInventory 商品月份
     * @return 结果
     */
    @Override
    public int updateMonthInventory(MonthInventory monthInventory)
    {
        return monthInventoryMapper.updateMonthInventory(monthInventory);
    }

    /**
     * 批量删除商品月份
     * 
     * @param ids 需要删除的商品月份主键
     * @return 结果
     */
    @Override
    public int deleteMonthInventoryByIds(Long[] ids)
    {
        return monthInventoryMapper.deleteMonthInventoryByIds(ids);
    }

    /**
     * 删除商品月份信息
     * 
     * @param id 商品月份主键
     * @return 结果
     */
    @Override
    public int deleteMonthInventoryById(Long id)
    {
        return monthInventoryMapper.deleteMonthInventoryById(id);
    }
}
